package com.zfh.dao;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

import com.zfh.entity.User;

public class UserDAOImpl1 implements UserDAO {

	@Override
	public List<User> getAll() throws Exception {
		List<User> users = new ArrayList<User>();
		User user = null;
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		for (int i = 0; i < 20; i++) {
			user = new User("1000"+i,"丰华"+i,"男",sdf.parse("1979-12-12"),100);
			users.add(user);
		}
		return users;
	}

	@Override
	public User getOne(String id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer getCount() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void insertUser(User user) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateUser(User user) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteUser(String id) throws Exception {
		// TODO Auto-generated method stub
		
	}

	

}
